Add local network Docker Compose harness - #62
Draft
chrypnotoad wants to merge 11 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a manually runnable Docker Compose local Liberdus network path so Playwright can run against a local web client instead of only
https://liberdus.com/dev/.Key additions:
@smokePlaywright command for smoke-only runs.How It Works
The workflow is
workflow_dispatchonly in this repo. It checks outserver,liberdus-proxy, andweb-client-v2into.deps/, builds the local-network image in its own step, starts the container, prints concise startup phases and healthcheck readiness reasons while waiting, then runs the tagged Playwright smoke tests againsthttp://127.0.0.1:8080/.scripts/local-network/start.jscopies the mounted repos into a writable Docker volume, writes local proxy/web config, reuses cached builds when possible, starts a 10-node Shardus network withshardus start, waits forprocessing, startsliberdus-proxy, writesnetwork.js, and serves the web client.Playwright still defaults to
https://liberdus.com/dev/unlessPLAYWRIGHT_BASE_URLorBASE_URLis set. Global setup now requires the modern network params (stabilityFactorStr,transactionFeeUsdStr, andminTollUsdStr) and fails fast if they are missing.Validation
Latest validation:
node -e "require('./helpers/global-setup')({ use: { baseURL: 'https://liberdus.com/dev/' } })..."-> passed against dev networknpm test -- --list --grep '@smoke'-> 7 tests in 2 filesgit diff --check-> passedPreviously validated during this PR:
node --check scripts/local-network/start.jsbash -n scripts/local-network/healthcheck.shdocker compose -f docker-compose.local.yml config --quietactionlintviarhysd/actionlintnpm run test:smoke -- --workers=1 --retries=0 --reporter=line->1 passed (26.2s)healthy1 passed (21.0s)dbf5259act --bindworkflow run passed before the JS startup port:1 passed (30.7s)Notes
web-client-v2; wiring this into that repo can happen after this local-network PR lands.new-nodelist-responsebecause current proxymainstalls on the local archiver nodelist response.